<admintpl file="header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <form class="well form-search" id="query_form" method="post" action="{:U('Admin/Guest/joinManage')}">
        开始时间：
        <input type="text" name="start_time" class="js-datetime"  value="{$start_time}" autocomplete="off">
        开始时间：
        <input type="text" name="end_time" class="js-datetime"  value="{$end_time}" autocomplete="off">
        手机号：
        <input type="text" name="phone" style="width: 120px;" value="{$phone}" placeholder="请输入手机号">
        昵称：
        <input type="text" name="nickname" style="width: 120px;" value="{$nickname}" placeholder="请输入昵称">
        投注数量：
        <input type="text" name="amount" style="width: 120px;" value="{$mount}" placeholder="请输入投注数量">
        获得奖励：
        <input type="text" name="won_cnt" style="width: 120px;" value="{$won_cnt}" placeholder="请输入获得奖励">
        <input type="hidden" name="id" style="width: 120px;" value="{$id}" placeholder="">
        <input type="submit" name="query_form_btn" id="queryBtn" data-action="{:U('Admin/Guest/joinManage')}" class="btn btn-primary" value="查询" />
    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
            	<th>序号</th>
                <th>投注时间</th>
                <th>手机号</th>
                <th>昵称</th>
                <th>竞猜答案</th>
                <th>投注数量</th>
                <th>获得奖励</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo" key="keys">
                <tr>
                	<td>{$keys+1}</td>
                    <td>{$vo.created_at}</td>
                    <td>{$vo.mobile_phone}</td>
                    <td>{$vo.nickname}</td>
                    <td>{$vo.rule_name}</td>
                    <td>{$vo.amount}</td>
                    <td>{$vo.won_cnt}</td>
                    <td>
                        <a href="{:U('Admin/User/moremany',array('user_id'=>$vo['user_id']))}">查看详情</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
    <div class="pagination">{$page}</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>

</body>
</html>
<script>
    function setFull(quiz_id){
        layer.open({
            type: 2,
            //skin: 'layui-layer-lan',
            title: '通栏设置',
            fix: false,
            shadeClose: true,
            maxmin: true,
            area: ['1000px', '500px'],
            content: "<?php if($_SERVER['SERVER_NAME'] == 'fzadmin.xinhuiwen.com') { echo U('Admin/Guest/setFull')?>"+'?id='+quiz_id+"<?php ;}else{echo U('Admin/Guest/setFull')?>"+'&id='+quiz_id+"<?php ;}?>",
            end: function(){
                location.reload();
            }
        });
    }

    function setDetail(quiz_id){
        layer.open({
            type: 2,
            //skin: 'layui-layer-lan',
            title: '通栏设置',
            fix: false,
            shadeClose: true,
            maxmin: true,
            area: ['1000px', '500px'],
            content: "<?php if($_SERVER['SERVER_NAME'] == 'fzadmin.xinhuiwen.com') { echo U('Admin/Guest/setDetail')?>"+'?id='+quiz_id+"<?php ;}else{echo U('Admin/Guest/setDetail')?>"+'&id='+quiz_id+"<?php ;}?>",
            end: function(){
                location.reload();
            }
        });
    }
</script>